﻿/*****************************************************************//**
 * @file    FITKViewAdaptorLoad_F_M.h
 * @brief   Adaptor for concentrated force and moment.
 *  
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-04-10
 *********************************************************************/

#ifndef __FITKVIEWADAPTORLOAD_F_M_H__
#define __FITKVIEWADAPTORLOAD_F_M_H__

#include "FITKVTKViewAdaptorBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

namespace Exchange
{
    /**
     * @brief   Graph object data adaptor for 'concentrated force' and 'moment'.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-04-10
     */
    class FITKVTKGRAPHADAPTORAPI FITKViewAdaptorLoad_F_M : public FITKVTKViewAdaptorBase
    {
        // Regist
        FITKCLASS(Exchange, FITKViewAdaptorLoad_F_M);

    public:
        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-10
         */
        explicit FITKViewAdaptorLoad_F_M() = default;

        /**
         * @brief   Destructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-10
         */
        ~FITKViewAdaptorLoad_F_M() = default;

        /**
         * @brief   Execute the data exchange.[override]
         * @return  Is OK
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-04-10
         */
        bool update() override;

    };

    // Type define.
    typedef FITKViewAdaptorLoad_F_M FITKViewAdaptorLoadForce;
    typedef FITKViewAdaptorLoad_F_M FITKViewAdaptorLoadMoment;

    // Regist force load adaptor
    Register2FITKViewAdaptorFactory(Load_F_M_L, Interface::FITKAbaLoadConcentratedForce, FITKViewAdaptorLoad_F_M, 1);

    // Regist moment load adaptor
    Register2FITKViewAdaptorFactory(Load_F_M_L, Interface::FITKAbaLoadMoment, FITKViewAdaptorLoad_F_M, 2);

    // Regist line load adaptor
    // Register2FITKViewAdaptorFactory(Load_F_M_L, Interface::, FITKViewAdaptorLoad_F_M, 3);

}   // namespace Exchange

#endif // __FITKVIEWADAPTORLOAD_F_M_H__
